﻿using System;
using System.Collections.Generic;

namespace gvPoco.Data
{
    /// <summary>
    /// The rows property holds an array of row objects. Each row object has 
    /// one required property called c, which is an array of cells in that row. 
    /// It also has an optional p property that defines a map of arbitrary custom 
    /// values to assign to the whole row. If your visualization supports any 
    /// row-level properties it will describe them; otherwise, this property will be ignored.
    /// </summary>
    public class Row
    {
        #region Properties
        private List<Cell> _c;
        public List<Cell> c
        {
            get 
            {
                // lazily instantiate
                if (_c == null)
                {
                    _c = new List<Cell>();
                }
                return _c; 
            }
            set { _c = value; }
        }
        #endregion

        #region Constructor(s)
        public Row() { }
        #endregion
    }
}